package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 商户信息对象 tb_manage_user
 *
 * @author laowang
 * @date 2023-02-17
 */
@NoArgsConstructor
@Data
public class TbManageUser implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @Excel(name = "手机号")
    @ApiModelProperty(value = "手机号", required = false)
    private String phone;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Excel(name = "密码")
    @ApiModelProperty(value = "密码", required = false)
    private String password;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;
}
